﻿package cgs.server.logging
{

    public class CGSServerProps extends Object
    {
        private var _serverURL:String;
        private var _abTestingURL:String;
        private var _useDevServer:Boolean;
        private var _skeyHashType:int;
        private var _skey:String = null;
        private var _gameName:String = null;
        private var _gameID:int = -1;
        private var _versionID:int = -1;
        private var _categoryID:int = -1;
        private var _levelID:int = -1;
        private var _sessionID:String = null;
        private var _eventID:int = -1;
        private var _typeID:int = -1;

        public function CGSServerProps(param1:String, param2:int, param3:String, param4:int, param5:int, param6:int, param7:String = null, param8:Boolean = false, param9:String = null)
        {
            this._skey = param1;
            this._skeyHashType = param2;
            this._gameName = param3;
            this._gameID = param4;
            this._versionID = param5;
            this._categoryID = param6;
            this._serverURL = param7;
            this._abTestingURL = param9;
            this._useDevServer = param8;
            return;
        }// end function

        public function get skey() : String
        {
            return this._skey;
        }// end function

        public function get isServerURLValid() : Boolean
        {
            return this._serverURL != null;
        }// end function

        public function get serverURL() : String
        {
            return this._serverURL;
        }// end function

        public function get isABTestingURLValid() : Boolean
        {
            return this._abTestingURL != null;
        }// end function

        public function get abTestingURL() : String
        {
            return this._abTestingURL;
        }// end function

        public function get useDevServer() : Boolean
        {
            return this._useDevServer;
        }// end function

        public function get skeyHashVersion() : int
        {
            return this._skeyHashType;
        }// end function

        public function get gameName() : String
        {
            return this._gameName;
        }// end function

        public function get gameID() : int
        {
            return this._gameID;
        }// end function

        public function get versionID() : int
        {
            return this._versionID;
        }// end function

        public function get categoryID() : int
        {
            return this._categoryID;
        }// end function

        public function set levelID(param1:int) : void
        {
            this._levelID = param1;
            return;
        }// end function

        public function get levelID() : int
        {
            return this._levelID;
        }// end function

        public function set sessionID(param1:String) : void
        {
            this._sessionID = param1;
            return;
        }// end function

        public function get sessionID() : String
        {
            return this._sessionID;
        }// end function

        public function set eventID(param1:int) : void
        {
            this._eventID = param1;
            return;
        }// end function

        public function get eventID() : int
        {
            return this._eventID;
        }// end function

        public function set typeID(param1:int) : void
        {
            this._typeID = param1;
            return;
        }// end function

        public function get typeID() : int
        {
            return this._typeID;
        }// end function

    }
}
